package com.secondhand.project.service;

import com.secondhand.project.domain.ChatInfo;

import java.util.List;

public interface IChatInfoService {
    ChatInfo selectChatInfoById(Long id);

    List<ChatInfo> selectChatInfoList(ChatInfo chatInfo);

    int insertChatInfo(ChatInfo chatInfo);

    int updateChatInfo(ChatInfo chatInfo);

    int deleteChatInfoByIds(Long[] ids);

    int deleteChatInfoById(Long id);

    List<ChatInfo> selectUserChat(Long chatUserId);

    void updateRead(Long chatUserId);
}
